using System.Net.Mime;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace platformShoot
{
public class MainPanel : MonoBehaviour
{
    private Text mScoreText;
    // Start is called before the first frame update
    private void Start()
    {
        mScoreText = transform.Find("ScoreText").GetComponent<Text>();

    }

    // Update is called once per frame
    public void UpdateScoreTxt(int score)
    {
        print("2222");
        print(mScoreText.text);
        int temp = int.Parse(mScoreText.text);
        print("3333");
        print(mScoreText.text);
        mScoreText.text = (temp + score).ToString();
    }
}

}
